using cframework.SDKUtil;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public static class SDKMgr
{
    static ISDKUtil _sdkUtil;
    public static ISDKUtil sdkUtil
    {
        get
        {
            if (_sdkUtil == null)
            { 
                if(Application.isEditor)
                {
                    _sdkUtil = SDKUtilEditor.instance;
                }
                else
                {
                    switch(Application.platform)
                    {
                        case RuntimePlatform.WebGLPlayer:
#if ENABLE_SDKUTIL_WX
                            _sdkUtil = SDKUtil_WX.instance;
#elif ENABLE_SDKUTIL_DOUYIN
                            _sdkUtil = SDKUtil_DouYin.instance;
#endif
                            break;
                    }
                }
            }

            return _sdkUtil;
        }
    }
}
